package com.bang.study.selector;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Auther: Bang
 * @Date: 2020/7/30 00:03
 * @Description:
 */
public class MyImportSelector implements ImportSelector {
    /**
     * Select and return the names of which class(es) should be imported based on
     * the {@link AnnotationMetadata} of the importing @{@link Configuration} class.
     *
     * @param importingClassMetadata
     * @return the class names, or an empty array if none
     */
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{"com.bang.study.bean.Blue","com.bang.study.bean.Red"};
    }
}
